using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class UI_CraftSlot : UISprite
{
    protected override void Start()
    {
        base.Start();
    }
    public void SetUpCraftSlot(ItemData_Equipment _data)
    {
        Itema.data = _data;
        itemImage.sprite = _data.icon;
        textMeshProUGUI.text = _data.itemName;
    }
    public override void OnPointerDown(PointerEventData eventData)
    {
        ui.craftwindow.SetUpCraftWindow(Itema.data as ItemData_Equipment);

     
        
    }
}
